{include file="public/header" /}

    <div class="layui-body">
        <!--tab标签-->
        <div class="layui-tab layui-tab-brief">
            <ul class="layui-tab-title">
                <li class="layui-btn"><a href="{:url('Order/add')}">添加活动商品信息</a></li>

            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table">
                        <thead>

                        <tr>
                            <th style="width: 30px;text-align: center">订单ID</th>
                            <th style="width: 30px;" align="center">订单状态</th>
                            <th style="text-align: center">关联用户ID</th>
                            <th style="text-align: center">关联商品ID</th>
                            <th style="text-align: center">订单（年）</th>
                            <th style="text-align: center">订单（月）</th>
                            <th style="text-align: center">订单（日）</th>
                            <th style="text-align: center">排序</th>
                            <th style="text-align: center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="list" id="val"}
                        <tr id="dels{$val.id}">
                            <td style="text-align: center">{$val.id}</td>
                            <td style="text-align: center">{$val.status_name}</td>
                            <td style="text-align: center">{$val.user_id}</td>
                            <td style="text-align: center">{$val.goods_id}</td>
                            <td style="text-align: center">{$val.year}</td>
                            <td style="text-align: center">{$val.month}</td>
                            <td style="text-align: center">{$val.day}</td>
                            <td style="text-align: center">{$val.sort}</td>
                            <td style="text-align: center">
                                <a href="javascript:void(0)" onclick="del('{$val.id}')" class="layui-btn layui-btn-danger layui-btn-mini ">删除</a>
                                <script>
                                                    function del(id){
                                                        window.location.href='{:url("Order/dels")}'+'?id='+id;
                                                    }

                                </script>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                    {$page}
                </div>
            </div>
        </div>
    </div>
{include file="public/footer" /}
<!--添加轮播layer-->
